package cn.tannn.ops.ssh.controller.dto;

import cn.tannn.jdevelops.annotations.jpa.JpaUpdate;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 服务器ssh连接信息
 *
 * @author tnnn
 * @version V1.0
 * @date 2024-9-10
 */
@Schema(description = "编辑服务器ssh连接信息")
@ToString
@Getter
@Setter
public class SshInfoEdit  {

    @Schema(description = "id",requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull
    @JpaUpdate(unique = true)
    private Long id;


    /** 服务器名 */
    @Schema(description = "服务器名")
    private  String  name ;

    /** 服务账号[默认root] */
    @Schema(description = "服务账号[默认root]")
    private  String  username ;

    /** 服务器密码 */
    @Schema(description = "服务器密码")
    private  String  password ;


    /** ssh连接端口[默认22] */
    @Schema(description = "ssh连接端口[默认22]")
    private  Integer  port ;


    /** 备注 */
    @Schema(description = "备注")
    private  String  remark ;


    /** 服务器ip[默认127.0.0.1] */
    @Schema(description = "服务器ip[默认127.0.0.1]")
    private  String  url ;



}
